package com.amazon.ags.client.authentication;

import android.os.Bundle;
import android.os.Parcel;
import android.os.RemoteException;
import android.util.Log;
import com.amazon.ags.client.AmazonGamesService;

public class AuthenticationServiceProxy
  implements AuthenticationService
{
  private static final String FEATURE_NAME = "AGC";
  private static final String TAG = "AGC_" + AuthenticationService.class.getSimpleName();
  private AmazonGamesService amazonGamesService;

  public AuthenticationServiceProxy(AmazonGamesService paramAmazonGamesService)
  {
    this.amazonGamesService = paramAmazonGamesService;
  }

  public final boolean isAuthenticated()
  {
    Log.d(TAG, "Attempting to check is authenticated");
    try
    {
      Parcel localParcel = Parcel.obtain();
      localParcel.writeBundle(new Bundle());
      int i = this.amazonGamesService.transact(3, localParcel).readInt();
      boolean bool = false;
      if (i == 5)
        bool = true;
      return bool;
    }
    catch (RemoteException localRemoteException)
    {
      Log.e(TAG, "isAuthenticated(): ", localRemoteException);
    }
    return false;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.amazon.ags.client.authentication.AuthenticationServiceProxy
 * JD-Core Version:    0.6.2
 */